#собесы #python #senior Вопросы, которые могут задать на собеседовании Senior Python Developer. Проверьте себя без помощи поисковиков!
❓Как работает механизм исключений (exceptions) в Python?
Пример кода:
try: result = 10 / 0 except ZeroDivisionError: print("Ошибка: деление на ноль") else: print("Исключений не было") finally: print("Этот блок выполнится всегда")
❗️Исключения обрабатываются с помощью блоков try, except, finally и else. При возникновении исключения в блоке try выполнение переходит в соответствующий блок except. Блок finally выполняется всегда, независимо от того, было ли исключение. Блок else выполняется, если исключение не возникло.
#собесы #python #senior Вопросы, которые могут задать на собеседовании Senior Python Developer. Проверьте себя без помощи поисковиков!
❓Как работает механизм исключений (exceptions) в Python?
Пример кода:
try: result = 10 / 0 except ZeroDivisionError: print("Ошибка: деление на ноль") else: print("Исключений не было") finally: print("Этот блок выполнится всегда")
❗️Исключения обрабатываются с помощью блоков try, except, finally и else. При возникновении исключения в блоке try выполнение переходит в соответствующий блок except. Блок finally выполняется всегда, независимо от того, было ли исключение. Блок else выполняется, если исключение не возникло.
At a time when the Indian stock market is peaking and has rallied immensely compared to global markets, there are companies that have not performed in the last 10 years. These are definitely a minor portion of the market considering there are hundreds of stocks that have turned multibagger since 2020. What went wrong with these stocks? Reasons vary from corporate governance, sectoral weakness, company specific and so on. But the more important question is, are these stocks worth buying?
Mr. Durov launched Telegram in late 2013 with his brother, Nikolai, just months before he was pushed out of VK, the Russian social-media platform he founded. Mr. Durov pitched his new app—funded with the proceeds from the VK sale—less as a business than as a way for people to send messages while avoiding government surveillance and censorship.